<%@ page contentType="text/html; charset=utf-8" language="java" import="com.seminariosab.tools.SABSeedRamdomize" errorPage="" %>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">

<head>
<meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
<title>SISAB - Seleccion de llamadas ELEX</title>
<link href="styles/cstyle_sab01.css" rel="stylesheet" type="text/css" media="all" />

<link type="text/css" rel="stylesheet" href="calendar/calendar.css">
<link type="text/css" rel="stylesheet" href="calendar/calendar-tas.css">
<link type="text/css" rel="stylesheet" href="calendar/calendar2.css">
<script src="calendar/calendar.js" type="text/javascript">
</script>
<script src="calendar/calendar-setup.js" type="text/javascript">
</script>
<script src="calendar/calendar-es.js" type="text/javascript"></script>
<script src="calendar/calendar1.js" language="JavaScript"></script>
<script src="calendar/calendar2.js" language="JavaScript"></script>

</head>

<body><form id="frmfopen" name="frmfopen" method="post" action="">
<table width="389" border="0" cellpadding="0" cellspacing="0">
  <!--DWLayoutTable-->
  <tr>
    <td height="24" colspan="4" valign="top" bgcolor="#B8CCE0"><strong class="t_header">Selección</strong></td>
    <td width="93" valign="top" bgcolor="#B8CCE0"><strong class="t_header">Filtro ELEX</strong></td>
  </tr>
  <tr>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td width="65">&nbsp;</td>
    <td width="50">&nbsp;</td>
    <td>&nbsp;</td>
  </tr>
  <tr>
    <td width="75"><div align="right" class="cstyle_sab01">Operador:</div></td>
    <td width="106"><div align="left">
      <label>
      <input name="txtoperador" type="text" id="txtoperador" size="6" maxlength="4" />
      </label>
    </div></td>
    <td colspan="3" bgcolor="#B8CCE0">&nbsp;</td>
    </tr>
  <tr>
    <td class="t_header"><!--DWLayoutEmptyCell-->&nbsp;</td>
    <td><!--DWLayoutEmptyCell-->&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
  </tr>
  <tr>
    <td class="t_header"><div align="right">Fecha:</div></td>
    <td><div align="left">
   
        <label>
          <input name="txtfecha" type="text" class="cstyle_sab01" id="txtfecha" size="12" maxlength="10" ondblclick="javascript:esFecha(this.frmfopen.txtfecha.value);" />
          </label>
      
      </div></td>
    <td><img src="images/calendar.gif" name="fecha" width="20" height="20" id="fecha" /></td>
    <td><script language="JavaScript">
                                    Calendar.setup({
                                        inputField    : "txtfecha",
                                        button        : "fecha",
                                        ifFormat      : "%d-%m-%Y"
                                    });
                                </script></td>
    <td>&nbsp;</td>
  </tr>
  <tr>
    <td class="t_header"><div align="right"></div></td>
    <td><div align="left"></div></td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
  </tr>
  <tr>
    <td class="t_header"><div align="right">Cliente:</div></td>
    <td><div align="left">
      <label>
      <input name="txtcosabcli" type="text" class="cstyle_sab01" id="txtcosabcli" size="8" maxlength="6" />
      </label>
    </div></td>
    <td colspan="3" bgcolor="#B8CCE0">&nbsp;</td>
    </tr>
  <tr>
    <td class="t_header"><div align="right"></div></td>
    <td><div align="left"></div></td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
  </tr>
  <tr>
    <td class="t_header"><div align="right">Valor:</div></td>
    <td><div align="left">
      <label>
      <input name="txtcosabval" type="text" class="cstyle_sab01" id="txtcosabval" size="8" maxlength="6" />
      </label>
    </div></td>
    <td colspan="3" bgcolor="#B8CCE0">&nbsp;</td>
    </tr>
  <tr>
    <td class="t_header"><div align="right"></div></td>
    <td><div align="left"></div></td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
  </tr>
  <tr>
    <td class="t_header"><div align="right">C/V:</div></td>
    <td><div align="left">
      <label>
      <select name="cbocompraventa" class="cstyle_sab01" id="cbocompraventa">
        <option value="C">Compra</option>
        <option value="V">Venta</option>
        <option value="T" selected="selected">Todos</option>
                  </select>
      </label>
    </div></td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
  </tr>
  <tr>
    <td class="t_header"><div align="right"></div></td>
    <td><div align="left"></div></td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
  </tr>
  <tr>
    <td class="t_header"><div align="right"></div></td>
    <td><div align="left"></div></td>
    <td>&nbsp;</td>
    <td>&nbsp;</td>
    <td><div align="center"><a href="javascript:void(0);" onclick="javascript:doPostValues();"><img src="images/btnasig_search.jpg" border="0" alt="buscar" width="26" height="26" /></a></div></td>
  </tr>
</table>
</form>
<script>
<!--


function doPostValues(){
    var operador=window.document.getElementById("txtoperador").value;
var fecha=window.document.getElementById("txtfecha").value;
var cliente=window.document.getElementById("txtcosabcli").value;
var compraventa=window.document.getElementById("cbocompraventa").value;
var seedrnd='<%=new SABSeedRamdomize().getSeed()%>';
    
	var o=window.opener.document.getElementById('txtfecha5').value = 'hola'; 
	window.opener.location="index.jsp?"+seedrnd+"&opesab="+operador+"&fchal="+fecha+"&cosabcli="+cliente+"&cv="+compraventa+"&idsess+"+seedrnd;
	window.opener.focus(); 
	window.close(); 
	return false;
}
//-->
</script>
</body>
</html>
